#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "../Tools/databasehandler.h"
#include "../Tools/clienttcp.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(int currentID, QString &role, QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::Widget *ui;
    DatabaseHandler *db;
    ClientTcp *tcp;
    int currentID;
    QString role;
};
#endif // WIDGET_H
